home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / reiser4 / backup.h < prev    next >
C/C++ Source or Header  |  2006-01-09  |  1KB  |  38 lines

  1. /* Copyright (C) 2001, 2002, 2003, 2004 by Hans Reiser, licensing governed by
  2.    reiser4progs/COPYING.
  3.    
  4.    backup.h -- reiser4 backup method declaration. */
  5.  
  6. #ifndef REISER4_BACKUP_H
  7. #define REISER4_BACKUP_H
  8.  
  9. #ifndef ENABLE_MINIMAL
  10.  
  11. /* Put backup copies into the power of (3/2) block numbers. */
  12. #define BACKUP_EXP_LAYOUT(blk)        ((blk * 3) >> 1)
  13.  
  14. extern reiser4_backup_t *reiser4_backup_create(reiser4_fs_t *fs);
  15.  
  16. extern reiser4_backup_t *reiser4_backup_open(reiser4_fs_t *fs);
  17.  
  18. extern void reiser4_backup_close(reiser4_backup_t *backup);
  19.  
  20. extern errno_t reiser4_backup_sync(reiser4_backup_t *backup);
  21.  
  22. extern errno_t reiser4_backup_valid(reiser4_backup_t *backup);
  23.  
  24. extern errno_t reiser4_backup_layout(reiser4_fs_t *fs,
  25.                      region_func_t region_func, 
  26.                      void *data);
  27.  
  28. extern errno_t reiser4_old_backup_layout(reiser4_fs_t *fs, 
  29.                      region_func_t region_func,
  30.                      void *data);
  31.  
  32. #define reiser4_backup_isdirty(backup) ((backup)->dirty)
  33. #define reiser4_backup_mkdirty(backup) ((backup)->dirty = 1)
  34. #define reiser4_backup_mkclean(backup) ((backup)->dirty = 0)
  35.  
  36. #endif
  37. #endif
  38.